package com.ark.cloud.javacallnative.modules.storage.service.impl;

import com.ark.cloud.javacallnative.entity.SimEngineState;

import com.ark.cloud.javacallnative.modules.storage.mapper.SimEngineStateMapper;
import com.ark.cloud.javacallnative.modules.storage.service.SimEngineStateService;
import com.ark.cloud.javacallnative.util.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/9/2  下午4:34
 * @description
 */
@Service
public class SimEngineStateServiceImpl implements SimEngineStateService {

    @Autowired
    SimEngineStateMapper simEngineStateDao;
    @Override
    public void saveSimEngineStateInfo(SimEngineState simEngineState) {

        // 设置UUID
        simEngineState.setId(UUIDUtil.next());
        System.out.println("simEngineState:"+simEngineState);
        simEngineStateDao.insert(simEngineState);
    }
}
